//
//  JKRProgressView.m
//  百思不得姐
//
//  Created by Lucky on 16/3/8.
//  Copyright © 2016年 Lucky. All rights reserved.
//

#import "JKRProgressView.h"

@implementation JKRProgressView

- (void)awakeFromNib
{
    self.roundedCorners = 2;
    self.progressLabel.textColor = [UIColor whiteColor];
}

- (void)setProgress:(CGFloat)progress animated:(BOOL)animated
{
    [super setProgress:progress animated:animated];
    
    NSString *text = [NSString stringWithFormat:@"%.0f%%", 100 * progress];
    text = [text stringByReplacingOccurrencesOfString:@"-" withString:@""];
    
    self.progressLabel.text = text;
}

@end
